Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(VpcV2): adding imports for SubnetV2 and VpcV2(WIP) #31765

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

shikha372
Copy link
Contributor

@shikha372 shikha372 commented Oct 15, 2024

Issue # (if applicable)

Tracking #30762.

Reason for this change

Allow users to define imports for a VPC or subnet defined outside current stack definition.

Description of changes

  • Added new methods under VpcV2 and Subnet
    VpcV2.fromVpcV2Attributes() and SubnetV2.fromSubnetV2Attributes()

  • Added new L2 for VPCCidrBlock to allow import of secondary addresses.
    VPCCidrBlock

  • Added new integration test and unit test file to check import related functionality.

  • Updated Readme.

  • Fixed an earlier issue with subnet range check, fixed to include IPAM defined IPv4 address as well

Description of how you validated changes

Deployed and tested for below scenarios in account:

  1. Import a VPC with primary IPv4
  2. Import a subnet with primary IPv4
  3. Import a VPC with multiple secondary IPv4
  4. Import a VPC with Amazon provided IPV6
  5. Import a VPC with Ipam provided IPv6/IPv4
  6. Import subnet individually using fromSubnetV2attributes
  7. Imported different type of multiple subnets
  8. Add gateways/endpoint to imported vpc

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added the p2 label Oct 15, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team October 15, 2024 18:55
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Oct 15, 2024
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

@aws-cdk-automation aws-cdk-automation dismissed their stale review October 16, 2024 17:52

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@shikha372 shikha372 changed the title feat(VpcV2): adding imports for Subnetv2 and VPCv2(WIP) feat(VpcV2): adding imports for SubnetV2 and VpcV2(WIP) Oct 16, 2024
@shikha372 shikha372 marked this pull request as ready for review October 16, 2024 21:26
@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Oct 16, 2024
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 13d1458
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. p2 pr/needs-maintainer-review This PR needs a review from a Core Team Member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants